﻿using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
namespace WPFExcelReport
{
    public partial class THR20QI
    {

        public THR20QI()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VHRSTAMM();
            this.DataContext = MV;
            InitializeComponent();
        } 
        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e);
        }
        public override void LOADALL()
        {
            dwData = TBMain.NewRow();
            dwData["HRMANDANT"] = app.Mandant;
            SResult = TMV.QHR04(dwData);
            MergeData(SResult, false);
            Locate("HRBENID", EXAUF);
        }
        public override void OnEXAUFChg(string vlaue)
        {
            if (!IsLoaded)
                return;
            Locate("HRBENID", EXAUF);
            base.OnEXAUFChg(vlaue);
        }
        public override void LOADBYAUF()
        {
            Locate("HRBENID", ORDERNUM);
        }
    }
}
